package com.oss.robot;

import java.util.List;

import com.oss.model.Link;

/**
 * @author xueqiang.mi
 * @since 2010-8-21
 */
public class SiteRobot extends BaseRobot {

	public void extract(long pageIndex, long pageSize) {
		List<Link> links = lnkService.getLatestLnks(pageIndex, pageSize);
		for (Link link : links) {
			siteService.extractAndAdd(link);
		}
	}
}
